//
//  MenuCell.m
//  HaiTongHop
//
//  Created by Nguyen Cong Huy on 12/25/14.
//  Copyright (c) 2014 Nguyen Cong Huy. All rights reserved.
//

#import "MenuCell.h"

#define kImageSize 30

@implementation MenuCell

- (void)layoutSubviews {
    [super layoutSubviews];

    self.imageView.frame = CGRectMake(20, self.height/2 - kImageSize/2, kImageSize, kImageSize);
    
    self.imageView.layer.cornerRadius = self.imageView.width/2;
    self.imageView.clipsToBounds = YES;
    
    CGRect textLabelFrame = self.textLabel.frame;
    textLabelFrame.origin.x = self.imageView.right + 10;
    self.textLabel.frame = textLabelFrame;
}

@end
